package com.itheima.VO;

import lombok.Data;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Data
public class IdStaVO {

    private String id;
    private int status;

    public List<Long> ids(){
        String[] strings = id.split(",");
        List<Long> ids = Arrays.stream(strings).map((s -> {
            long l = Long.parseLong(s);
            return l;
        })).collect(Collectors.toList());
        return ids;
    }

}
